package com.yyq.adms.sysmanage.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "ss_sys_parameters")
public class SysParameters implements java.io.Serializable
{
	private static final long serialVersionUID = 5951606341929604386L;
	// Fields

	private String parameter;
	private String class1;
	private String class2;
	private String class3;
	private String cname;
	private String value;
	private String sts;
	private Date stsDate;
	private Long operator;
	
	public String toString(){
		StringBuffer str = new StringBuffer();
		str.append("\r\n;参数名="+this.getParameter());
		str.append("\r\n;参数中文名＝"+this.getCname());
		str.append("\r\n;参数值＝"+this.getValue());
		str.append("\r\n;状态="+this.getSts());
		str.append("\r\n;状态时间＝"+this.getStsDate());
		return str.toString();
	}
	
	// Constructors

	/** default constructor */
	public SysParameters() {
	}

	/** minimal constructor */
	public SysParameters(String sts, Date stsDate) {
		this.sts = sts;
		this.stsDate = stsDate;
	}

	/** full constructor */
	public SysParameters(String class1, String class2, String class3,
			String cname, String value, String sts, Date stsDate, Long operator) {
		this.class1 = class1;
		this.class2 = class2;
		this.class3 = class3;
		this.cname = cname;
		this.value = value;
		this.sts = sts;
		this.stsDate = stsDate;
		this.operator = operator;
	}

	// Property accessors

	@Id
	@GeneratedValue(generator = "c-assigned") 
	@GenericGenerator(name = "c-assigned", strategy = "assigned")
	@Column(name = "PARAMETER", nullable = false)
	public String getParameter() {
		return this.parameter;
	}

	public void setParameter(String parameter) {
		this.parameter = parameter;
	}

	@Column(name = "CLASS1")
	public String getClass1() {
		return this.class1;
	}

	public void setClass1(String class1) {
		this.class1 = class1;
	}

	@Column(name = "CLASS2")
	public String getClass2() {
		return this.class2;
	}

	public void setClass2(String class2) {
		this.class2 = class2;
	}

	@Column(name = "CLASS3")
	public String getClass3() {
		return this.class3;
	}

	public void setClass3(String class3) {
		this.class3 = class3;
	}

	@Column(name = "CNAME")
	public String getCname() {
		return this.cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	@Column(name = "VALUE")
	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Column(name = "STS")
	public String getSts() {
		return this.sts;
	}

	public void setSts(String sts) {
		this.sts = sts;
	}

	@Column(name = "STS_DATE")
	public Date getStsDate() {
		return this.stsDate;
	}

	public void setStsDate(Date stsDate) {
		this.stsDate = stsDate;
	}

	@Column(name = "OPERATOR")
	public Long getOperator() {
		return this.operator;
	}

	public void setOperator(Long operator) {
		this.operator = operator;
	}
}
